//
//  ZYXClassNameModel.h
//  RuiBeiKang
//
//  Created by iOS开发1 on 2019/1/8.
//  Copyright © 2019年 JW. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ZYXClassNameModel : NSObject
///标题
@property (strong,nonatomic) NSString *titleStr;
///内容数组
@property (strong,nonatomic) NSArray *dataArr;
//
///的初始化方法
- (instancetype)initWitTitle:(NSString *)title andNSArry:(NSArray *)arr isMore:(BOOL)isTop;
///章节ID
@property (strong,nonatomic) NSString *uid;
///课程名称
@property (strong,nonatomic) NSString *zang;
///内容数组
@property (strong,nonatomic) NSArray *res;
///是否展开
@property (assign,nonatomic) BOOL isTop;

@end
@interface  ZYXClassNameDerailModel : NSObject

///标题
@property (strong,nonatomic) NSString *video_url;
///ID
@property (strong,nonatomic) NSString *vid;

@property (strong,nonatomic) NSString *file_type;

///是不是选中的
@property (assign,nonatomic) BOOL isSelect;
- (instancetype)initWitTitle:(NSString *)title andVideo_url:(NSString *)video_url andVid:(NSString *)vid isSelect:(BOOL)isSelect;
+ (NSData *)dateWithInfoModel:(ZYXClassNameDerailModel *)mo;
+ (ZYXClassNameDerailModel *)infoWithData:(NSData *)data;

///标题
@property (strong,nonatomic) NSString *title;
///具体章节ID
@property (strong,nonatomic) NSString *uid;
///1：免费  2：不免费
@property (strong,nonatomic) NSString *free;
///1:视频  2：音频
@property (strong,nonatomic) NSString *video_type;
///背景图
@property (strong,nonatomic) NSString *free_img;
@end

@interface  ZYXClassModel : NSObject

//是否会员 1:是  2：不是
@property (strong,nonatomic) NSString *is_vip;
///是否购买 1：是 2：不是
@property (strong,nonatomic) NSString *is_buy;
///课程价格
@property (strong,nonatomic) NSString *price;
@end
